package top.hidoctor.auscultation.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.view.WindowManager;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.tang.util.BigDecimalUtil;

import java.util.ArrayList;
import java.util.List;

import top.hidoctor.auscultation.R;
import top.hidoctor.auscultation.view.EcgView;
import top.hidoctor.auscultation.view.EcgingView;

public class EcgAdapter extends BaseQuickAdapter<ArrayList<Float>> {

    public EcgAdapter(int layoutResId, List<ArrayList<Float>> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ArrayList<Float> item) {
        Log.e("TAG", "convert: " + item.size());
        EcgView view = helper.getView(R.id.ecg_view);
        view.setMdata(item, 0);
    }

}
